package com.ccsoft.static_package_mult_ds.service;

import com.ccsoft.static_package_mult_ds.dao.user.UserMapper;
import com.ccsoft.static_package_mult_ds.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author chanchaw
 * @create 2022-09-17 9:56
 */
@Service
public class UserServiceImpl implements UserService{
    @Autowired
    private UserMapper dao;
    @Override
    public int deleteByPrimaryKey(Integer iid) {
        return dao.deleteByPrimaryKey(iid);
    }

    @Override
    public int insert(User row) {
        return dao.insert(row);
    }

    @Override
    public int insertSelective(User row) {
        return dao.insertSelective(row);
    }

    @Override
    public User selectByPrimaryKey(Integer iid) {
        return dao.selectByPrimaryKey(iid);
    }

    @Override
    public int updateByPrimaryKeySelective(User row) {
        return dao.updateByPrimaryKeySelective(row);
    }

    @Override
    public int updateByPrimaryKey(User row) {
        return dao.updateByPrimaryKey(row);
    }

    @Override
    public List<User> selectAll() {
        return dao.selectAll();
    }
}
